﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using UnityEditor;
using UnityEngine;
using YeqianFramework.common;

namespace YeqianFramework.config
{
	//[CreateAssetMenu(menuName = "夜黔框架", order = 0)]
	[CreateAssetMenu(menuName = "夜黔框架/创建 YQFKConfig.xml", order = 0)]
	class YQFKConfigScriptableObject : ConfigScriptableObject
	{
		[Space]
		public YQFKConfig config;
	}

	[Serializable]
	public class YQFKConfig : Config
	{
		/// <summary>
		/// 日志文件夹路径
		/// </summary>
		[XmlElement]
		public string LogDirectory;

		/// <summary>
		/// 屏幕宽度 像素
		/// </summary>
		[XmlElement]
		public int ScreenWidth;
		/// <summary>
		/// 屏幕高度 像素
		/// </summary>
		[XmlElement]
		public int ScreenHeigh;

		/// <summary>
		/// AB包存放位置<br/>
		/// Assets\StreamingAssets\AB\StandaloneWindows\
		/// </summary>
		[XmlElement]
		public string ABPath;
		/// <summary>
		/// 游戏配置表文件夹的位置
		/// </summary>
		[XmlElement]
		public string GameConfigDirectory;

		/// <summary>
		/// bgm音量
		/// </summary>
		[XmlElement]
		public float BgmVolume;

		/// <summary>
		/// 呼出debug界面
		/// </summary>
		[XmlElement]
		public KeyCode callDebugFieldKey;
	}
}
